using System;

namespace AntEater.Runtime.UI
{
    /// <summary>
    /// Provides Event Arguments for all build file events.
    /// </summary>
    public class BuildFileViewEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildFileViewEventArgs"/> class.
        /// </summary>
        /// <param name="buildFilePath">The build file path.</param>
        public BuildFileViewEventArgs(string buildFilePath) 
            : this(buildFilePath, BuildFileViewType.Designer) {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="BuildFileViewEventArgs"/> class.
        /// </summary>
        /// <param name="buildFilePath">The build file path.</param>
        /// <param name="view">The view.</param>
        public BuildFileViewEventArgs(string buildFilePath, BuildFileViewType view) {
            this._buildFilePath = buildFilePath;
            this._view = view;
        }

        private string _buildFilePath;

        /// <summary>
        /// Gets the build file path.
        /// </summary>
        /// <value>The build file path.</value>
        public string BuildFilePath {
            get { return _buildFilePath; }
        }

        private BuildFileViewType _view;

        /// <summary>
        /// Gets the view.
        /// </summary>
        /// <value>The view.</value>
        public BuildFileViewType View {
            get { return _view; }
        }
    }
}
